package com.chinasoft.mapper;

import com.chinasoft.domain.Student;
import com.chinasoft.query.StudentQuery;

import java.util.List;

/**
 * mapper层
 */
public interface StudentMapper {
    //查询所有
    List<Student> loadAll();
    //删除
    boolean  deleteById(Integer id);
    //批量删除
    boolean batchDelete(List<Integer> ids);
    //新增
    boolean  addStudent(Student student);
    //修改
    boolean updateStudent(Student student);
    //查询单个
    Student selectById(Integer id);
    //根据名称查询
    Student selectByName(String name);
    //统计条数
    Long count(StudentQuery studentQuery);
    //分页查询
    List<Student> queryPage(StudentQuery studentQuery);
}
